// out: ../css/common.css
@import "./variables.less";
@import "./reset.less";
html {
  font-size: 13.33333vw;
  @media (min-width: 750px) {
    font-size: 100px;
  }
}
body {
  font-size: 0.26rem;
  background-color: #f3f3f3;
  color: #333;
}
img {
  max-width: 100%;
}
.cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-wrapper {
  max-width: 750px;
  margin: 0 auto;
}

.main-wrapper {
  margin: @margin-base;
  &.with-slider {
    margin-top: -1rem - @margin-base;
  }
}

.topslider {
  margin-bottom: @margin-base;
  height: 2rem;
  overflow: hidden;
  .boxshadow();
  img {
    display: block;
    width: 7.5rem - (@margin-base * 2);
    height: 2rem;
    object-fit: cover;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  background: #fff;
  .boxshadow();
  padding: @margin-base;
  margin-bottom: @margin-base;
  .item {
    text-align: center;
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .icon {
    width: 0.6rem;
    height: 0.6rem;
    margin-bottom: 0.2rem;
  }
  .name {
    font-size: 0.24rem;
    color: #858585;
    a {
      color: #858585;
    }
  }
}

.page-action {
  position: fixed;
  bottom: 1rem;
  right: 0.6rem;
  .action {
    img {
      width: 1.1rem;
      height: 1.1rem;
    }
  }
}

.content-wrapper {
  margin: @margin-base;
}
.banner {
  img {
    display: block;
  }
}
.navs,
.tabs {
  display: flex;
  padding-bottom: @margin-base;
  padding: @margin-base;
  justify-content: space-evenly;
  background-color: #fff;
  margin-bottom: @margin-base;
  .item {
    font-size: 0.28rem;
    color: #474747;
    line-height: 2;
    &:not(:last-child) {
      margin-right: @margin-sm;
    }
    &.active {
      position: relative;
      color: #000;
      font-weight: 600;
      &:after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        width: 0.4rem;
        height: 0.05rem;
        margin-left: -0.2rem;
        background: #e00e0d;
      }
    }
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: @margin-base 0;
  img {
    width: 0.4rem;
    height: 0.4rem;
    margin-right: @margin-sm;
    animation: rotate 2s linear infinite;
  }
}
.loadmore {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: @margin-base 0;
  img {
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.05rem;
  }
}
@import "./components/topbar.less";
@import "./components/card.less";
@import "./components/form.less";
@import "./components/score.less";
@import "./components/questions.less";
